package com.liujianlei.forum_system.dao;

import com.liujianlei.forum_system.model.Message;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageMapper {
    Integer insert(Message row);

    Integer insertSelective(Message row);

    Message selectByPrimaryKey(Long id);

    Integer updateByPrimaryKeySelective(Message row);

    Integer updateByPrimaryKey(Message row);
    List<Message> selectByReceiveUserId (@Param("receiveUserId") Long receiveUserId);
    Integer getUnreadCount(@Param("receiveUserId") Long userId);

}